import request from '@/utils/request'

export function findByPage(query) {
  return request({
    url: '/student/findByPage',
    method: 'get',
    params:query //表单数据
  })
}


export function deleteStudent(studentId) {
  return request({
    url: '/student/deleteById',
    method: 'get',
    params:{"studentId":studentId}//form
  })
}
export function addStudent(data) {
  return request({
    url: '/student/add',
    method: 'post',
    data//json
  })
}

export function updateStudent(data) {
  return request({
    url: '/student/updateById',
    method: 'post',
    data//json
  })
}

export function findAllList() {
  return request({
    url: '/student/findAllList',
    method: 'get'
  })
}